import request from '@/utils/request'

// 查询车辆停运记录列表
export function listOutageRecord(query) {
  return request({
    url: '/safety/outageRecord/list',
    method: 'get',
    params: query
  })
}

// 查询车辆停运记录详细
export function getOutageRecord(id) {
  return request({
    url: '/safety/outageRecord/' + id,
    method: 'get'
  })
}

// 新增车辆停运记录
export function addOutageRecord(data) {
  return request({
    url: '/safety/outageRecord',
    method: 'post',
    data: data
  })
}

// 修改车辆停运记录
export function updateOutageRecord(data) {
  return request({
    url: '/safety/outageRecord',
    method: 'put',
    data: data
  })
}

// 删除车辆停运记录
export function delOutageRecord(id) {
  return request({
    url: '/safety/outageRecord/' + id,
    method: 'delete'
  })
}
